home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Demos / AppMaker™ 1.5 DEMO / Demo AppMaker™ / Demo AppMaker™.rsrc / TmMM_801_MakeFile < prev    next >
Encoding:
Makefile  |  1992-04-08  |  4.1 KB  |  122 lines

  1. #   File:       %AppFilename%.MAMake
  2. #   Target:     %AppFilename% 
  3. #    Created %date% %time% by AppMaker
  4.  
  5. #    MABuild creates a .make file which
  6. #        compiles source files as needed
  7. #        runs Rez to create .rsrc files from .r files of the same name
  8. #        links the object files
  9. #        runs Rez to create resources and to copy the linked CODE
  10. #            its output is a temporary file
  11. #        runs PostRez to convert cmnu resources into MENU/mntb resources
  12. #            PostRez also sets the applications type and creator
  13. #                from its BNDL resource
  14. #        moves the built application from the temporary folder
  15. #            to the specified output folder.
  16. #        optionally, runs the built application
  17.  
  18. #    MABuild uses this file, and the file "Build Rules and Dependencies",
  19. #        and many MPW variables set by {MacApp}Startup as input.
  20.  
  21.  
  22. #---------------------------------------------------------------------------------------------------
  23. #    List here the Application's Name and Creator Type
  24.  
  25. AppName = %AppFilename% 
  26. Creator = 'XXXX'
  27.  
  28.  
  29. #---------------------------------------------------------------------------------------------------
  30. #    List any additional interfaces that your application is dependent on
  31. #    If any of these change, then M{AppName}, U{AppName},
  32. #    and {AppName} will be recompiled
  33.  
  34. BuildingBlockIntf =  ∂
  35.         "{MAM2Interfaces}UGridView.MSYM" ∂
  36.         "{MAM2Interfaces}UTEView.MSYM" ∂
  37.         "{MAM2Interfaces}UDialog.MSYM" ∂
  38.         "{MAM2Interfaces}UPrinting.MSYM"
  39.  
  40.  
  41. #---------------------------------------------------------------------------------------------------
  42. #    Express any additional dependencies for separate compilations.
  43. #    Include dependencies for the MacApp and Building block interfaces
  44. #    if you are dependent on them
  45.  
  46. "{ObjApp}M%AppName%.MOD.o"%    %ƒ    "{SrcApp}M%AppName%.MOD" ∂
  47.                                 "{ObjApp}U%AppName%.MSYM"
  48.  
  49. "{ObjApp}U%AppName%.MOD.o"%    %ƒ    "{SrcApp}U%AppName%.MOD" ∂
  50.                                 "{ObjApp}U%AppName%.MSYM" ∂
  51.                                 "{ObjApp}U%AppName%Doc.MSYM" ∂
  52.                                 %for each dialog gen dependency%
  53.                 "{ObjApp}ResourceDefs.MSYM"
  54.  
  55. "{ObjApp}U%AppName%Doc.MOD.o"%    %ƒ    "{SrcApp}U%AppName%Doc.MOD" ∂
  56.                                     "{ObjApp}U%AppName%Doc.MSYM" ∂
  57.                                     %for each window gen dependency%
  58.                 "{ObjApp}ResourceDefs.MSYM"
  59.  
  60. "{ObjApp}ResourceDefs.MOD.o"%    %ƒ    "{SrcApp}ResourceDefs.MOD" ∂
  61.                 "{ObjApp}ResourceDefs.MSYM"
  62. %for each window gen makeDepend%
  63.  
  64. %for each dialog gen makeDepend%
  65.  
  66. "{MAM2Sym}"%    %ƒ    "{MAM2Interfaces}"
  67. "{MAM2Sym}UAMLibraryM.MSYM"%    %ƒ    "{MAM2Interfaces}UAMLibraryM.DEF"
  68.  
  69. "{ObjApp}UAMLibraryM.p.o"%    %ƒ    "{MAPInterfaces}UAMLibraryM.p" ∂
  70.                                 "{MAPInterfaces}UAMLibraryM.inc.p"
  71.     {MAEcho} {EchoOptions} "Compiling:     UAMLibraryM.p"
  72.     {MAPascal} ∂
  73.         {PascalOptions} ∂
  74.         {OtherPascalOptions} ∂
  75.         {PascalLoadOptions} ∂
  76.         -i "{SrcApp}" ∂
  77.         -i "{MAPInterfaces}" ∂
  78.         -o "{ObjApp}UAMLibraryM.p.o" ∂
  79.         "{MAPInterfaces}"UAMLibraryM.p
  80.  
  81.  
  82. #---------------------------------------------------------------------------------------------------
  83. #    By default MacApp.make links the above libraries, all of MacApp,
  84. #    and the files UAppName.MOD.o and MAppName.MOD.o
  85. #    List any additional files that your program links with:
  86.  
  87. OtherLinkFiles =     ∂
  88.         "{ObjApp}UAMLibraryM.p.o" ∂
  89.         %for each dialog gen linkFile%
  90.         %for each window gen linkFile%
  91.         "{ObjApp}U%AppName%Doc.MOD.o" ∂
  92.         "{ObjApp}ResourceDefs.MOD.o"
  93.  
  94.  
  95. #---------------------------------------------------------------------------------------------------
  96. #    Specify any -sn (segment alias) linker options that you want included.
  97.  
  98. OtherSegMappings = ∂
  99.         -sn XxxxInit=GInit
  100.  
  101.  
  102. #---------------------------------------------------------------------------------------------------
  103. #    List Rez files other than AppName.r that need to Rez'ed with the application
  104.  
  105. OtherRezFiles =             
  106.  
  107.  
  108. #---------------------------------------------------------------------------------------------------
  109. #    List resource files that a Rez file includes if you want to include
  110. #    more or less than the standard set
  111.  
  112. OtherRsrcFiles = ∂
  113.         "{SrcApp}%AppFilename%"
  114.  
  115.  
  116. #---------------------------------------------------------------------------------------------------
  117. #    "dummy up" MAPostRez to not run PostRez.  Since AppMaker already created
  118. #    MENU/mntb resources, running PostRez is unnecessary (and harmful because
  119. #    it deletes the existing mntb resource).
  120.  
  121. MAPostRez = SetFile -t APPL -c {Creator}
  122.